package info.sean.main;

public class RedisKeyUtils {

    private static final String KEY_SPLIT_CHAR = ":";

    private static final String LSC_UNIFY_BIZ_LOCK_PREFIX = "LSC_BIZ_LOCK:";

    public RedisKeyUtils() {
    }

    public static String keyBuilder(String module1, String key, String... otherModules) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(module1);
        String[] var4 = otherModules;
        int var5 = otherModules.length;

        for(int var6 = 0; var6 < var5; ++var6) {
            String otherModule = var4[var6];
            stringBuilder.append(":").append(otherModule);
        }

        stringBuilder.append(":").append(key);
        return stringBuilder.toString();
    }

    public static void main(String[] args) {
        String keyBuilder = keyBuilder("LAN", LSC_UNIFY_BIZ_LOCK_PREFIX, "368");
        System.out.println("keyBuilder = " + keyBuilder);
    }

}
